package com.jiangkang.example.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2020-03-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_r_menu")
public class Menu extends Model<Menu> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer parentid;

    /**
     * 菜单栏名称
     */
    private String menuName;

    /**
     * 菜单栏样式
     */
    private String menuStyle;

    /**
     * 模块访问路径
     */
    private String menuRoute;

    private LocalDateTime gmtCreate;

    private LocalDateTime gmtUpdate;

    private Integer isDelete;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
